-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Reactions): Support super reactions #1470
feat(Reactions): Support super reactions #1470
Conversation
Has someone tested this? I can't reliably test this myself |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please lint, merge conflict resolution is invalid
This PR is still a draft cuz Discord haven't updated their docs yet to match all of the props I've used here. Probably best to test it when both of those PRs are merged just in case they change anything else 👍🏻 |
I personally don't think it's worth waiting until Discord confirms docs. Also we previously had stuff which was undocumented (can't remember which ones exactly), and if there are any changes, we can just update accordingly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some props which aren't documented in the PRs, I've tried to ask the api team what's going on with them but haven't actually received a reply (yes i know that contradicts what i said in my earlier comment)
I'll take a further look at this once I get my PR done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing type
in both reaction add and reaction remove
Super Reactions!
Adds support for super reactions! Pretty sure Discord is still in the process of adding some of it from the docs, so some of the properties Ive used are from open PRs on the Discord API repo
Also adds support for specifying a reaction type when using
Message#getReaction()
and allgetMessageReaction()
functionsChanges/Additions
burst_colors
,count_details
&me_burst
added toMessage#reactions
reaction objectsmessageReactionAdd
&messageReactionRemove
events send additionalburst
(boolean) parameter to bound functiontype
option added to thegetReaction()
function within Message, as well as thegetMessageReaction()
function within Client, DMChannel & GuildTextableChannel,Testing:
MESSAGE_REACTION_ADD & MESSAGE_REACTION_REMOVE rawWS screenshots
Message Reaction Add (Normal Emoji)
Message Reaction Remove (Normal Emoji)
Message Reaction Add (Burst Emoji)
Message Reaction Remove (Burst Emoji)
Note:
burst_colors
is never sent with MESSAGE_REACTION_REMOVE, even when it's a burst reaction, so I'll leave that property out completely rather than just sending an empty array to the event.Message object with burst reaction
This screenshot shows a message with 1 normal reaction, and 1 burst reaction. I'll add more screenshots here when I've finished the todo list and can continue testing 👍🏻